package com.googlecode.alfrescocachingserver.services;

import java.util.Set;

import org.springframework.context.ApplicationContext;

import com.googlecode.alfrescocachingserver.model.CacheEntry;
import com.googlecode.alfrescocachingserver.model.WebScriptCacheKey;

public interface CacheService
{
    public void initialize(ApplicationContext applicationContext);
    
    public CacheEntry getCacheEntry(WebScriptCacheKey webScriptCacheKey);

    public boolean removeCacheEntry(WebScriptCacheKey webScriptCacheKey);

    public Set<String> removeCacheEntries(String id);

    public Set<String> flushCache(String cacheName);
}
